
<jsp:useBean id="member" type="cs4280.bean.Member" scope="session" />
<jsp:useBean id="price" type="cs4280.bean.Price" scope="session" />

<fieldset>

    <% if (member.getLpMoney() >= price.getTotalPrice()) {
        
    %>
        <input type="radio" name="paymentMethod" value="2" />2.Pay by Loyalty Points
    <p>Yours total points: <%=member.getLp()%></p>
    <label for="points">Use Points (100 points = $1 ):</label>
    Spent <input type="text" id="points" name="points" value="<%=price.getTotalPriceLP()%>" disabled="true"/> points.
    <%                   } else {

    %>
        <input type="radio" name="paymentMethod" value="2" disabled="true"/>2.Pay by Loyalty Points
    <p>Yours total points: <%=member.getLp()%></p>
    <p> Your loyalty points are not enough to buy the ticket.</p>
    <%}%>
</fieldset>